<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Paho C++: src/mqtt/connect_options.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Paho C++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">The Paho MQTT C++ Client Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('connect__options_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">connect_options.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="connect__options_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">/*******************************************************************************</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Copyright (c) 2013-2016 Frank Pagliughi &lt;fpagliughi@mindspring.com&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * All rights reserved. This program and the accompanying materials</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * are made available under the terms of the Eclipse Public License v1.0</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * and Eclipse Distribution License v1.0 which accompany this distribution.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * The Eclipse Public License is available at</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    http://www.eclipse.org/legal/epl-v10.html</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * and the Eclipse Distribution License is available at</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *   http://www.eclipse.org/org/documents/edl-v10.php.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * Contributors:</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    Frank Pagliughi - initial implementation and documentation</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#ifndef __mqtt_connect_options_h</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __mqtt_connect_options_h</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;MQTTAsync.h&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="types_8h.html">mqtt/types.h</a>&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="message_8h.html">mqtt/message.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="topic_8h.html">mqtt/topic.h</a>&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="token_8h.html">mqtt/token.h</a>&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="string__collection_8h.html">mqtt/string_collection.h</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="will__options_8h.html">mqtt/will_options.h</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ssl__options_8h.html">mqtt/ssl_options.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;chrono&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">namespace </span>mqtt {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html">   46</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmqtt_1_1connect__options.html">connect_options</a></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> MQTTAsync_connectOptions DFLT_C_STRUCT ;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    MQTTAsync_connectOptions opts_;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="classmqtt_1_1will__options.html">will_options</a> will_;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a> ssl_;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a> userName_;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <a class="code" href="classmqtt_1_1buffer__ref.html">binary_ref</a> password_;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    token_ptr tok_;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    const_string_collection_ptr serverURIs_;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#ac39954340d8b15edaa883af1bcfcf7ae">   73</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classmqtt_1_1async__client.html">async_client</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span>connect_options_test;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span>token_test;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* c_str(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a>&amp; sr) {</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keywordflow">return</span> sr.<a class="code" href="classmqtt_1_1buffer__ref.html#a7fc93b3215ffcb9f8798b6350ac0604f">empty</a>() ? <span class="keyword">nullptr</span> : sr.<a class="code" href="classmqtt_1_1buffer__ref.html#a686a9aecf29f8290e1ba8161ac81d12b">c_str</a>();</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#aa235e73ac246fdabb1663125171dce41">   93</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1connect__options.html#aa235e73ac246fdabb1663125171dce41">ptr_t</a> = std::shared_ptr&lt;connect_options&gt;;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a642c3f4a4fe7e45c48be198606ab5abd">   95</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1connect__options.html#a642c3f4a4fe7e45c48be198606ab5abd">const_ptr_t</a> = std::shared_ptr&lt;const connect_options&gt;;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <a class="code" href="classmqtt_1_1connect__options.html#a5811ad2a2bbbb02b04d79b08530349a3">connect_options</a>();</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <a class="code" href="classmqtt_1_1connect__options.html#a5811ad2a2bbbb02b04d79b08530349a3">connect_options</a>(<a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a> userName, <a class="code" href="classmqtt_1_1buffer__ref.html">binary_ref</a> password);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <a class="code" href="classmqtt_1_1connect__options.html#a5811ad2a2bbbb02b04d79b08530349a3">connect_options</a>(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1connect__options.html">connect_options</a>&amp; opt);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="classmqtt_1_1connect__options.html#a5811ad2a2bbbb02b04d79b08530349a3">connect_options</a>(<a class="code" href="classmqtt_1_1connect__options.html">connect_options</a>&amp;&amp; opt);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <a class="code" href="classmqtt_1_1connect__options.html">connect_options</a>&amp; <a class="code" href="classmqtt_1_1connect__options.html#a90a1c129374e0babbf668b61dd5c6c05">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1connect__options.html">connect_options</a>&amp; opt);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <a class="code" href="classmqtt_1_1connect__options.html">connect_options</a>&amp; <a class="code" href="classmqtt_1_1connect__options.html#a90a1c129374e0babbf668b61dd5c6c05">operator=</a>(<a class="code" href="classmqtt_1_1connect__options.html">connect_options</a>&amp;&amp; opt);</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#adbb10d7dacb950790a78d72df99ce493">  131</a></span>&#160;    std::chrono::seconds <a class="code" href="classmqtt_1_1connect__options.html#adbb10d7dacb950790a78d72df99ce493">get_keep_alive_interval</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="keywordflow">return</span> std::chrono::seconds(opts_.keepAliveInterval);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    }</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#ab0295bc9433f5c5d7190da29c6e1f0a9">  140</a></span>&#160;    std::chrono::seconds <a class="code" href="classmqtt_1_1connect__options.html#ab0295bc9433f5c5d7190da29c6e1f0a9">get_connect_timeout</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <span class="keywordflow">return</span> std::chrono::seconds(opts_.connectTimeout);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    }</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#ade1380d6113d9309291bc0ac6784078c">  147</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1connect__options.html#ade1380d6113d9309291bc0ac6784078c">get_user_name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> userName_ ? userName_.<a class="code" href="classmqtt_1_1buffer__ref.html#a940a8cf306fd985b2f3c85a79328b423">to_string</a>() : string(); }</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a4065ae5e674b0c9d80b8691f56ff7449">  152</a></span>&#160;    <a class="code" href="classmqtt_1_1buffer__ref.html">binary_ref</a> <a class="code" href="classmqtt_1_1connect__options.html#a4065ae5e674b0c9d80b8691f56ff7449">get_password</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> password_; }</div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#ac45ec604a735add8f663e732fa73b509">  157</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1connect__options.html#ac45ec604a735add8f663e732fa73b509">get_password_str</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <span class="keywordflow">return</span> password_ ? password_.<a class="code" href="classmqtt_1_1buffer__ref.html#a940a8cf306fd985b2f3c85a79328b423">to_string</a>() : string();</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    }</div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a56ee18bbd4efba3b5bdfdbf95eec50a1">  165</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classmqtt_1_1connect__options.html#a56ee18bbd4efba3b5bdfdbf95eec50a1">get_max_inflight</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> opts_.maxInflight; }</div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a017b54a34ef9b2ba16ef5a00b0c72e7c">  170</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1connect__options.html#a017b54a34ef9b2ba16ef5a00b0c72e7c">get_will_topic</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="keywordflow">return</span> will_.<a class="code" href="classmqtt_1_1will__options.html#a3ace4c9e5aef81654cdb5795c0926523">get_topic</a>();</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a2a5deebcf884743ddc30a6ebdda95c3f">  177</a></span>&#160;    const_message_ptr <a class="code" href="classmqtt_1_1connect__options.html#a2a5deebcf884743ddc30a6ebdda95c3f">get_will_message</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        <span class="keywordflow">return</span> will_.<a class="code" href="classmqtt_1_1will__options.html#a5ee824476eb40b39aabc18ed0feb158b">get_message</a>();</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    }</div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a7bba282230d34a8796fc1b52d45df2cd">  184</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classmqtt_1_1will__options.html">will_options</a>&amp; <a class="code" href="classmqtt_1_1connect__options.html#a7bba282230d34a8796fc1b52d45df2cd">get_will_options</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> will_; }</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a8279ac8ef4a9df3bea4a24303e25c339">  189</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a>&amp; <a class="code" href="classmqtt_1_1connect__options.html#a8279ac8ef4a9df3bea4a24303e25c339">get_ssl_options</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ssl_; }</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#ac7d250c386ffc68aad082c83348588c4">set_ssl</a>(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1ssl__options.html">ssl_options</a>&amp; ssl);</div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a062dd43eb33c096559678777a9a7f2fe">  202</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmqtt_1_1connect__options.html#a062dd43eb33c096559678777a9a7f2fe">is_clean_session</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> to_bool(opts_.cleansession); }</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#ad15863b53666f537d6d1bb9fb172566c">  207</a></span>&#160;    token_ptr <a class="code" href="classmqtt_1_1connect__options.html#ad15863b53666f537d6d1bb9fb172566c">get_token</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> tok_; }</div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#ac505f06c3b16b0fe86aa83b5dd0093cb">  215</a></span>&#160;    const_string_collection_ptr <a class="code" href="classmqtt_1_1connect__options.html#ac505f06c3b16b0fe86aa83b5dd0093cb">get_servers</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> serverURIs_; }</div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a3c162937e8b8c49c2c3f7d2885203fb3">  224</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classmqtt_1_1connect__options.html#a3c162937e8b8c49c2c3f7d2885203fb3">get_mqtt_version</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> opts_.MQTTVersion; }</div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#afe2d085bb089c6fdab1426adb5137470">  231</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmqtt_1_1connect__options.html#afe2d085bb089c6fdab1426adb5137470">get_automatic_reconnect</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> to_bool(opts_.automaticReconnect); }</div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#ad419a13dad78d2c0d5cbbf71c0ca546f">  237</a></span>&#160;    std::chrono::seconds <a class="code" href="classmqtt_1_1connect__options.html#ad419a13dad78d2c0d5cbbf71c0ca546f">get_min_retry_interval</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        <span class="keywordflow">return</span> std::chrono::seconds(opts_.minRetryInterval);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    }</div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a2fd757ca85253174997982eebcd817c8">  245</a></span>&#160;    std::chrono::seconds <a class="code" href="classmqtt_1_1connect__options.html#a2fd757ca85253174997982eebcd817c8">get_max_retry_interval</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <span class="keywordflow">return</span> std::chrono::seconds(opts_.maxRetryInterval);</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    }</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a403bdb15d0383f160e590cdb19039c30">  254</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a403bdb15d0383f160e590cdb19039c30">set_clean_session</a>(<span class="keywordtype">bool</span> cleanSession) {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        opts_.cleansession = to_int(cleanSession);</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    }</div>
<div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a21d0565ce539b40097bb911c50ecbc60">  261</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a21d0565ce539b40097bb911c50ecbc60">set_connection_timeout</a>(<span class="keywordtype">int</span> timeout) {</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        opts_.connectTimeout = timeout;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    }</div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a8f7c99d453da95192b15641a80286441">  271</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a8f7c99d453da95192b15641a80286441">set_keep_alive_interval</a>(<span class="keywordtype">int</span> keepAliveInterval) {</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        opts_.keepAliveInterval = keepAliveInterval;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    }</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> Rep, <span class="keyword">class</span> Period&gt;</div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a1fe7db605c853cbf3d96a7f92b1938eb">  282</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a1fe7db605c853cbf3d96a7f92b1938eb">set_keep_alive_interval</a>(<span class="keyword">const</span> std::chrono::duration&lt;Rep, Period&gt;&amp; interval) {</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        <span class="comment">// TODO: Check range</span></div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;        <a class="code" href="classmqtt_1_1connect__options.html#a8f7c99d453da95192b15641a80286441">set_keep_alive_interval</a>((<span class="keywordtype">int</span>) to_seconds_count(interval));</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    }</div>
<div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a3ab5997d6b7faff140a62ad3059ff5f6">  292</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a3ab5997d6b7faff140a62ad3059ff5f6">set_connect_timeout</a>(<span class="keywordtype">int</span> to) {</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        opts_.connectTimeout = to;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    }</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> Rep, <span class="keyword">class</span> Period&gt;</div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a597539d16cf450959e99f8c1a2c25c29">  302</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a597539d16cf450959e99f8c1a2c25c29">set_connect_timeout</a>(<span class="keyword">const</span> std::chrono::duration&lt;Rep, Period&gt;&amp; to) {</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <span class="comment">// TODO: check range</span></div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <a class="code" href="classmqtt_1_1connect__options.html#a3ab5997d6b7faff140a62ad3059ff5f6">set_connect_timeout</a>((<span class="keywordtype">int</span>) to_seconds_count(to));</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a0d4c0ab71eccf7785b477df5619943b6">set_user_name</a>(<a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a> userName);</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#af27a81a33acfbb152c70a7331163afce">set_password</a>(<a class="code" href="classmqtt_1_1buffer__ref.html">binary_ref</a> password);</div>
<div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a9782ad70a6927ce80ab155928eea2f57">  320</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a9782ad70a6927ce80ab155928eea2f57">set_max_inflight</a>(<span class="keywordtype">int</span> n) { opts_.maxInflight = n; }</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#ab5c95da2cdcff93f9737a42015002f27">set_will</a>(<span class="keyword">const</span> <a class="code" href="classmqtt_1_1will__options.html">will_options</a>&amp; will);</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a2cf8245b406dba323c508b1af7308bba">set_token</a>(<span class="keyword">const</span> token_ptr&amp; tok);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#ab07b77a183819ef5831bedf158195217">set_servers</a>(const_string_collection_ptr serverURIs);</div>
<div class="line"><a name="l00348"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#ade9cf837014937ca3df32bb04c7dca28">  348</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#ade9cf837014937ca3df32bb04c7dca28">set_mqtt_version</a>(<span class="keywordtype">int</span> mqttVersion) { opts_.MQTTVersion = mqttVersion; }</div>
<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a7a4a2086ca01c12eeda4e5d5821eaea4">  354</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a7a4a2086ca01c12eeda4e5d5821eaea4">set_automatic_reconnect</a>(<span class="keywordtype">bool</span> on) {</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        opts_.automaticReconnect = on ? !0 : 0;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    }</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a7a4a2086ca01c12eeda4e5d5821eaea4">set_automatic_reconnect</a>(<span class="keywordtype">int</span> minRetryInterval, <span class="keywordtype">int</span> maxRetryInterval);</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> Rep1, <span class="keyword">class</span> Period1, <span class="keyword">class</span> Rep2, <span class="keyword">class</span> Period2&gt;</div>
<div class="line"><a name="l00373"></a><span class="lineno"><a class="line" href="classmqtt_1_1connect__options.html#a2fa264464f0b705af67ba4327afc1425">  373</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1connect__options.html#a2fa264464f0b705af67ba4327afc1425">set_automatic_reconnect</a>(<span class="keyword">const</span> std::chrono::duration&lt;Rep1, Period1&gt;&amp; minRetryInterval,</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;                                 <span class="keyword">const</span> std::chrono::duration&lt;Rep2, Period2&gt;&amp; maxRetryInterval) {</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        <a class="code" href="classmqtt_1_1connect__options.html#a7a4a2086ca01c12eeda4e5d5821eaea4">set_automatic_reconnect</a>((<span class="keywordtype">int</span>) to_seconds_count(minRetryInterval),</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;                                (<span class="keywordtype">int</span>) to_seconds_count(maxRetryInterval));</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    }</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1connect__options.html#a3a387bef8a6e27edce8ae7d3f69a613b">to_string</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;};</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;<span class="keyword">using</span> connect_options_ptr = <a class="code" href="classmqtt_1_1connect__options.html#aa235e73ac246fdabb1663125171dce41">connect_options::ptr_t</a>;</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="comment">// end namespace mqtt</span></div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;}</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;<span class="preprocessor">#endif      // __mqtt_connect_options_h</span></div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;<span class="preprocessor"></span></div>
<div class="ttc" id="classmqtt_1_1async__client_html"><div class="ttname"><a href="classmqtt_1_1async__client.html">mqtt::async_client</a></div><div class="ttdoc">Lightweight client for talking to an MQTT server using non-blocking methods that allow an operation t...</div><div class="ttdef"><b>Definition:</b> async_client.h:60</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_aa235e73ac246fdabb1663125171dce41"><div class="ttname"><a href="classmqtt_1_1connect__options.html#aa235e73ac246fdabb1663125171dce41">mqtt::connect_options::ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; connect_options &gt; ptr_t</div><div class="ttdoc">Smart/shared pointer to an object of this class. </div><div class="ttdef"><b>Definition:</b> connect_options.h:93</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a403bdb15d0383f160e590cdb19039c30"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a403bdb15d0383f160e590cdb19039c30">mqtt::connect_options::set_clean_session</a></div><div class="ttdeci">void set_clean_session(bool cleanSession)</div><div class="ttdoc">Sets whether the server should remember state for the client across reconnects. </div><div class="ttdef"><b>Definition:</b> connect_options.h:254</div></div>
<div class="ttc" id="types_8h_html"><div class="ttname"><a href="types_8h.html">types.h</a></div><div class="ttdoc">Basic types and type conversions for the Paho MQTT C++ library. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a017b54a34ef9b2ba16ef5a00b0c72e7c"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a017b54a34ef9b2ba16ef5a00b0c72e7c">mqtt::connect_options::get_will_topic</a></div><div class="ttdeci">string get_will_topic() const </div><div class="ttdoc">Gets the topic to be used for last will and testament (LWT). </div><div class="ttdef"><b>Definition:</b> connect_options.h:170</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ac45ec604a735add8f663e732fa73b509"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ac45ec604a735add8f663e732fa73b509">mqtt::connect_options::get_password_str</a></div><div class="ttdeci">string get_password_str() const </div><div class="ttdoc">Gets the password to use for the connection. </div><div class="ttdef"><b>Definition:</b> connect_options.h:157</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a9782ad70a6927ce80ab155928eea2f57"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a9782ad70a6927ce80ab155928eea2f57">mqtt::connect_options::set_max_inflight</a></div><div class="ttdeci">void set_max_inflight(int n)</div><div class="ttdoc">Sets the maximum number of messages that can be in-flight simultaneously. </div><div class="ttdef"><b>Definition:</b> connect_options.h:320</div></div>
<div class="ttc" id="classmqtt_1_1will__options_html_a5ee824476eb40b39aabc18ed0feb158b"><div class="ttname"><a href="classmqtt_1_1will__options.html#a5ee824476eb40b39aabc18ed0feb158b">mqtt::will_options::get_message</a></div><div class="ttdeci">const_message_ptr get_message() const </div><div class="ttdoc">Gets the LWT message as a message object. </div><div class="ttdef"><b>Definition:</b> will_options.h:193</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a56ee18bbd4efba3b5bdfdbf95eec50a1"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a56ee18bbd4efba3b5bdfdbf95eec50a1">mqtt::connect_options::get_max_inflight</a></div><div class="ttdeci">int get_max_inflight() const </div><div class="ttdoc">Gets the maximum number of messages that can be in-flight simultaneously. </div><div class="ttdef"><b>Definition:</b> connect_options.h:165</div></div>
<div class="ttc" id="classmqtt_1_1ssl__options_html"><div class="ttname"><a href="classmqtt_1_1ssl__options.html">mqtt::ssl_options</a></div><div class="ttdoc">Holds the set of SSL options for connection. </div><div class="ttdef"><b>Definition:</b> ssl_options.h:41</div></div>
<div class="ttc" id="will__options_8h_html"><div class="ttname"><a href="will__options_8h.html">will_options.h</a></div><div class="ttdoc">Declaration of MQTT will_options class. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_af27a81a33acfbb152c70a7331163afce"><div class="ttname"><a href="classmqtt_1_1connect__options.html#af27a81a33acfbb152c70a7331163afce">mqtt::connect_options::set_password</a></div><div class="ttdeci">void set_password(binary_ref password)</div><div class="ttdoc">Sets the password to use for the connection. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a5811ad2a2bbbb02b04d79b08530349a3"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a5811ad2a2bbbb02b04d79b08530349a3">mqtt::connect_options::connect_options</a></div><div class="ttdeci">connect_options()</div><div class="ttdoc">Constructs a new object using the default values. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a8f7c99d453da95192b15641a80286441"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a8f7c99d453da95192b15641a80286441">mqtt::connect_options::set_keep_alive_interval</a></div><div class="ttdeci">void set_keep_alive_interval(int keepAliveInterval)</div><div class="ttdoc">Sets the &quot;keep alive&quot; interval. </div><div class="ttdef"><b>Definition:</b> connect_options.h:271</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a642c3f4a4fe7e45c48be198606ab5abd"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a642c3f4a4fe7e45c48be198606ab5abd">mqtt::connect_options::const_ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; const connect_options &gt; const_ptr_t</div><div class="ttdoc">Smart/shared pointer to a const object of this class. </div><div class="ttdef"><b>Definition:</b> connect_options.h:95</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a2a5deebcf884743ddc30a6ebdda95c3f"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a2a5deebcf884743ddc30a6ebdda95c3f">mqtt::connect_options::get_will_message</a></div><div class="ttdeci">const_message_ptr get_will_message() const </div><div class="ttdoc">Gets the message to be sent as last will and testament (LWT). </div><div class="ttdef"><b>Definition:</b> connect_options.h:177</div></div>
<div class="ttc" id="string__collection_8h_html"><div class="ttname"><a href="string__collection_8h.html">string_collection.h</a></div><div class="ttdoc">Definition of the string_collection class for the Paho MQTT C++ library. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html"><div class="ttname"><a href="classmqtt_1_1connect__options.html">mqtt::connect_options</a></div><div class="ttdoc">Holds the set of options that control how the client connects to a server. </div><div class="ttdef"><b>Definition:</b> connect_options.h:46</div></div>
<div class="ttc" id="classmqtt_1_1buffer__ref_html_a686a9aecf29f8290e1ba8161ac81d12b"><div class="ttname"><a href="classmqtt_1_1buffer__ref.html#a686a9aecf29f8290e1ba8161ac81d12b">mqtt::buffer_ref::c_str</a></div><div class="ttdeci">const char * c_str() const </div><div class="ttdoc">Gets the data buffer as NUL-terminated C string. </div><div class="ttdef"><b>Definition:</b> buffer_ref.h:257</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a90a1c129374e0babbf668b61dd5c6c05"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a90a1c129374e0babbf668b61dd5c6c05">mqtt::connect_options::operator=</a></div><div class="ttdeci">connect_options &amp; operator=(const connect_options &amp;opt)</div><div class="ttdoc">Copy assignment. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a062dd43eb33c096559678777a9a7f2fe"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a062dd43eb33c096559678777a9a7f2fe">mqtt::connect_options::is_clean_session</a></div><div class="ttdeci">bool is_clean_session() const </div><div class="ttdoc">Returns whether the server should remember state for the client across reconnects. </div><div class="ttdef"><b>Definition:</b> connect_options.h:202</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ab07b77a183819ef5831bedf158195217"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ab07b77a183819ef5831bedf158195217">mqtt::connect_options::set_servers</a></div><div class="ttdeci">void set_servers(const_string_collection_ptr serverURIs)</div><div class="ttdoc">Sets the list of servers to which the client will connect. </div></div>
<div class="ttc" id="message_8h_html"><div class="ttname"><a href="message_8h.html">message.h</a></div><div class="ttdoc">Declaration of MQTT message class. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a2fd757ca85253174997982eebcd817c8"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a2fd757ca85253174997982eebcd817c8">mqtt::connect_options::get_max_retry_interval</a></div><div class="ttdeci">std::chrono::seconds get_max_retry_interval() const </div><div class="ttdoc">Gets the maximum retry interval for automatic reconnect. </div><div class="ttdef"><b>Definition:</b> connect_options.h:245</div></div>
<div class="ttc" id="classmqtt_1_1buffer__ref_html"><div class="ttname"><a href="classmqtt_1_1buffer__ref.html">mqtt::buffer_ref&lt; char &gt;</a></div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a21d0565ce539b40097bb911c50ecbc60"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a21d0565ce539b40097bb911c50ecbc60">mqtt::connect_options::set_connection_timeout</a></div><div class="ttdeci">void set_connection_timeout(int timeout)</div><div class="ttdoc">Sets the connection timeout value. </div><div class="ttdef"><b>Definition:</b> connect_options.h:261</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_afe2d085bb089c6fdab1426adb5137470"><div class="ttname"><a href="classmqtt_1_1connect__options.html#afe2d085bb089c6fdab1426adb5137470">mqtt::connect_options::get_automatic_reconnect</a></div><div class="ttdeci">bool get_automatic_reconnect() const </div><div class="ttdoc">Determines if the options have been configured for automatic reconnect. </div><div class="ttdef"><b>Definition:</b> connect_options.h:231</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a2cf8245b406dba323c508b1af7308bba"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a2cf8245b406dba323c508b1af7308bba">mqtt::connect_options::set_token</a></div><div class="ttdeci">void set_token(const token_ptr &amp;tok)</div><div class="ttdoc">Sets the callback context to a delivery token. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ad419a13dad78d2c0d5cbbf71c0ca546f"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ad419a13dad78d2c0d5cbbf71c0ca546f">mqtt::connect_options::get_min_retry_interval</a></div><div class="ttdeci">std::chrono::seconds get_min_retry_interval() const </div><div class="ttdoc">Gets the minimum retry interval for automatic reconnect. </div><div class="ttdef"><b>Definition:</b> connect_options.h:237</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ade9cf837014937ca3df32bb04c7dca28"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ade9cf837014937ca3df32bb04c7dca28">mqtt::connect_options::set_mqtt_version</a></div><div class="ttdeci">void set_mqtt_version(int mqttVersion)</div><div class="ttdoc">Sets the version of MQTT to be used on the connect. </div><div class="ttdef"><b>Definition:</b> connect_options.h:348</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a2fa264464f0b705af67ba4327afc1425"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a2fa264464f0b705af67ba4327afc1425">mqtt::connect_options::set_automatic_reconnect</a></div><div class="ttdeci">void set_automatic_reconnect(const std::chrono::duration&lt; Rep1, Period1 &gt; &amp;minRetryInterval, const std::chrono::duration&lt; Rep2, Period2 &gt; &amp;maxRetryInterval)</div><div class="ttdoc">Enable or disable automatic reconnects. </div><div class="ttdef"><b>Definition:</b> connect_options.h:373</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ac7d250c386ffc68aad082c83348588c4"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ac7d250c386ffc68aad082c83348588c4">mqtt::connect_options::set_ssl</a></div><div class="ttdeci">void set_ssl(const ssl_options &amp;ssl)</div><div class="ttdoc">Sets the SSL for the connection. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a3a387bef8a6e27edce8ae7d3f69a613b"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a3a387bef8a6e27edce8ae7d3f69a613b">mqtt::connect_options::to_string</a></div><div class="ttdeci">string to_string() const </div><div class="ttdoc">Gets a string representation of the object. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ade1380d6113d9309291bc0ac6784078c"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ade1380d6113d9309291bc0ac6784078c">mqtt::connect_options::get_user_name</a></div><div class="ttdeci">string get_user_name() const </div><div class="ttdoc">Gets the user name to use for the connection. </div><div class="ttdef"><b>Definition:</b> connect_options.h:147</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a7a4a2086ca01c12eeda4e5d5821eaea4"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a7a4a2086ca01c12eeda4e5d5821eaea4">mqtt::connect_options::set_automatic_reconnect</a></div><div class="ttdeci">void set_automatic_reconnect(bool on)</div><div class="ttdoc">Enable or disable automatic reconnects. </div><div class="ttdef"><b>Definition:</b> connect_options.h:354</div></div>
<div class="ttc" id="classmqtt_1_1buffer__ref_html_a7fc93b3215ffcb9f8798b6350ac0604f"><div class="ttname"><a href="classmqtt_1_1buffer__ref.html#a7fc93b3215ffcb9f8798b6350ac0604f">mqtt::buffer_ref::empty</a></div><div class="ttdeci">bool empty() const </div><div class="ttdoc">Determines if the buffer is empty. </div><div class="ttdef"><b>Definition:</b> buffer_ref.h:226</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ad15863b53666f537d6d1bb9fb172566c"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ad15863b53666f537d6d1bb9fb172566c">mqtt::connect_options::get_token</a></div><div class="ttdeci">token_ptr get_token() const </div><div class="ttdoc">Gets the token used as the callback context. </div><div class="ttdef"><b>Definition:</b> connect_options.h:207</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ab5c95da2cdcff93f9737a42015002f27"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ab5c95da2cdcff93f9737a42015002f27">mqtt::connect_options::set_will</a></div><div class="ttdeci">void set_will(const will_options &amp;will)</div><div class="ttdoc">Sets the &quot;Last Will and Testament&quot; (LWT) for the connection. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a3c162937e8b8c49c2c3f7d2885203fb3"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a3c162937e8b8c49c2c3f7d2885203fb3">mqtt::connect_options::get_mqtt_version</a></div><div class="ttdeci">int get_mqtt_version() const </div><div class="ttdoc">Gets the version of MQTT to be used on the connect. </div><div class="ttdef"><b>Definition:</b> connect_options.h:224</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a0d4c0ab71eccf7785b477df5619943b6"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a0d4c0ab71eccf7785b477df5619943b6">mqtt::connect_options::set_user_name</a></div><div class="ttdeci">void set_user_name(string_ref userName)</div><div class="ttdoc">Sets the user name to use for the connection. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a4065ae5e674b0c9d80b8691f56ff7449"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a4065ae5e674b0c9d80b8691f56ff7449">mqtt::connect_options::get_password</a></div><div class="ttdeci">binary_ref get_password() const </div><div class="ttdoc">Gets the password to use for the connection. </div><div class="ttdef"><b>Definition:</b> connect_options.h:152</div></div>
<div class="ttc" id="classmqtt_1_1will__options_html_a3ace4c9e5aef81654cdb5795c0926523"><div class="ttname"><a href="classmqtt_1_1will__options.html#a3ace4c9e5aef81654cdb5795c0926523">mqtt::will_options::get_topic</a></div><div class="ttdeci">string get_topic() const </div><div class="ttdoc">Gets the LWT message topic name. </div><div class="ttdef"><b>Definition:</b> will_options.h:168</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a3ab5997d6b7faff140a62ad3059ff5f6"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a3ab5997d6b7faff140a62ad3059ff5f6">mqtt::connect_options::set_connect_timeout</a></div><div class="ttdeci">void set_connect_timeout(int to)</div><div class="ttdoc">Sets the connect timeout in seconds. </div><div class="ttdef"><b>Definition:</b> connect_options.h:292</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ab0295bc9433f5c5d7190da29c6e1f0a9"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ab0295bc9433f5c5d7190da29c6e1f0a9">mqtt::connect_options::get_connect_timeout</a></div><div class="ttdeci">std::chrono::seconds get_connect_timeout() const </div><div class="ttdoc">Gets the connection timeout. </div><div class="ttdef"><b>Definition:</b> connect_options.h:140</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a1fe7db605c853cbf3d96a7f92b1938eb"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a1fe7db605c853cbf3d96a7f92b1938eb">mqtt::connect_options::set_keep_alive_interval</a></div><div class="ttdeci">void set_keep_alive_interval(const std::chrono::duration&lt; Rep, Period &gt; &amp;interval)</div><div class="ttdoc">Sets the &quot;keep alive&quot; interval with a chrono duration. </div><div class="ttdef"><b>Definition:</b> connect_options.h:282</div></div>
<div class="ttc" id="topic_8h_html"><div class="ttname"><a href="topic_8h.html">topic.h</a></div><div class="ttdoc">Declaration of MQTT topic class. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a8279ac8ef4a9df3bea4a24303e25c339"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a8279ac8ef4a9df3bea4a24303e25c339">mqtt::connect_options::get_ssl_options</a></div><div class="ttdeci">const ssl_options &amp; get_ssl_options() const </div><div class="ttdoc">Get the SSL options to use for the connection. </div><div class="ttdef"><b>Definition:</b> connect_options.h:189</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_adbb10d7dacb950790a78d72df99ce493"><div class="ttname"><a href="classmqtt_1_1connect__options.html#adbb10d7dacb950790a78d72df99ce493">mqtt::connect_options::get_keep_alive_interval</a></div><div class="ttdeci">std::chrono::seconds get_keep_alive_interval() const </div><div class="ttdoc">Gets the &quot;keep alive&quot; interval. </div><div class="ttdef"><b>Definition:</b> connect_options.h:131</div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a7bba282230d34a8796fc1b52d45df2cd"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a7bba282230d34a8796fc1b52d45df2cd">mqtt::connect_options::get_will_options</a></div><div class="ttdeci">const will_options &amp; get_will_options() const </div><div class="ttdoc">Get the LWT options to use for the connection. </div><div class="ttdef"><b>Definition:</b> connect_options.h:184</div></div>
<div class="ttc" id="classmqtt_1_1will__options_html"><div class="ttname"><a href="classmqtt_1_1will__options.html">mqtt::will_options</a></div><div class="ttdoc">Holds the set of options that govern the Last Will and Testament feature. </div><div class="ttdef"><b>Definition:</b> will_options.h:47</div></div>
<div class="ttc" id="ssl__options_8h_html"><div class="ttname"><a href="ssl__options_8h.html">ssl_options.h</a></div><div class="ttdoc">Declaration of MQTT ssl_options class. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_ac505f06c3b16b0fe86aa83b5dd0093cb"><div class="ttname"><a href="classmqtt_1_1connect__options.html#ac505f06c3b16b0fe86aa83b5dd0093cb">mqtt::connect_options::get_servers</a></div><div class="ttdeci">const_string_collection_ptr get_servers() const </div><div class="ttdoc">Gets the list of servers to which the client will connect. </div><div class="ttdef"><b>Definition:</b> connect_options.h:215</div></div>
<div class="ttc" id="token_8h_html"><div class="ttname"><a href="token_8h.html">token.h</a></div><div class="ttdoc">Declaration of MQTT token class. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html_a597539d16cf450959e99f8c1a2c25c29"><div class="ttname"><a href="classmqtt_1_1connect__options.html#a597539d16cf450959e99f8c1a2c25c29">mqtt::connect_options::set_connect_timeout</a></div><div class="ttdeci">void set_connect_timeout(const std::chrono::duration&lt; Rep, Period &gt; &amp;to)</div><div class="ttdoc">Sets the connect timeout with a chrono duration. </div><div class="ttdef"><b>Definition:</b> connect_options.h:302</div></div>
<div class="ttc" id="classmqtt_1_1buffer__ref_html_a940a8cf306fd985b2f3c85a79328b423"><div class="ttname"><a href="classmqtt_1_1buffer__ref.html#a940a8cf306fd985b2f3c85a79328b423">mqtt::buffer_ref::to_string</a></div><div class="ttdeci">const blob &amp; to_string() const </div><div class="ttdoc">Gets the data buffer as a string. </div><div class="ttdef"><b>Definition:</b> buffer_ref.h:251</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_503ebd9f384f44c9859dcb1451d026bc.html">mqtt</a></li><li class="navelem"><a class="el" href="connect__options_8h.html">connect_options.h</a></li>
    <li class="footer">Generated on Sun Jul 23 2017 10:24:29 for Paho C++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
